package com.baitiaojun.api.domain.video;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("视频弹幕")
public class BulletScreen {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(readOnly = true)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(readOnly = true)
    private Long userid;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "视频id", required = true)
    private Long videoid;

    @ApiModelProperty(readOnly = true)
    private String danmutime;

    @ApiModelProperty(readOnly = true)
    private Date createtime;

    @ApiModelProperty(value = "弹幕内容", required = true)
    private String content;
}